package gui;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;


public class ParametreUI extends JFrame {
	JTabbedPane tabbedPane;
    public ParametreUI() {
            	
    	tabbedPane = new JTabbedPane();
		
    	setSize(500, 350);
		setTitle("Paramètres");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

/*        JPanel pan = new PanelCongeUI();
        JScrollPane scrollPane = new JScrollPane();
        scrollPane.getViewport().add(pan);
        tabbedPane.addTab("Congé", scrollPane);
    */    
        JPanel pan2 = new PanelEnseignementUI();
        JScrollPane scrollPane2 = new JScrollPane();
        scrollPane2.getViewport().add(pan2);
        tabbedPane.addTab("Type d'enseignement", scrollPane2);
        
        JPanel pan3 = new PanelHeureUI();
        JScrollPane scrollPane3 = new JScrollPane();
        scrollPane3.getViewport().add(pan3);
        tabbedPane.addTab("Type d'heure", scrollPane3);
        
        JPanel pan4 = new PanelStatutUI();
        JScrollPane scrollPane4 = new JScrollPane();
        scrollPane4.getViewport().add(pan4);
        tabbedPane.addTab("Statut d'enseignant", scrollPane4);
        
        //Add the tabbed pane to this panel.
        add(tabbedPane);
        
        //The following line enables to use scrolling tabs.
        tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
    }
}